package com.binsoft.ndtta;

import java.util.Calendar;
import java.util.GregorianCalendar;

public class Constants 
{
	public static final String TEAM_INTENT_EXTRA = "TEAM";
	public static final String DIVISION_INTENT_EXTRA = "DIVISION";
	public static final String LATITUDE_INTENT_EXTRA = "LATITUDE";
	public static final String WEEK_INTENT_EXTRA = "WEEK";
	public static final String LONGITUDE_INTENT_EXTRA = "LONGITUDE";
	public static final String ENCRYPTION_KEY_EXTRA = "ENCRYPTION_KEY";
	public static final String DATE_FORMAT = "EEEE d MMMM yyyy";
	public static final String TEAM_PREF = "TEAM";
	public static final String DIVISION_PREF = "DIVISION";
	public static final String PREFS = "com.binsoft.ndtta";
	public static final String DATABASE_TABLE = "ndtta201314";
	public static final String DATABASE_NAME = "ndtta.db";
	public static final String ENCRYPTION_STRING = "ENCRYPTION_STRING";
	public static final byte[] DECRYPTOR = { 0x8, 0x3, 0x5, 0xA, 0x9, 0x4, 0x1, 0x3, 0x2, 0xA, 0x7, 0x5, 0x3, 0xF };
	public static final int DATABASE_VERSION = 1;

	public static final GregorianCalendar START_DATE = new GregorianCalendar(2013, 8, 23);

	public enum Location
	{
		THATCHAM( 51.403305,-1.25592 ), 
		JOG(51.397497,-1.446585),
		WOOLTON_HILL(51.35571,-1.386005),
		INKPEN(51.369336,-1.47043),
		ASHFORD_HILL(51.352266,-1.2041),
		AWE(51.362711,-1.15689),
		TIDMARSH(51.470745,-1.08692),
		WEST_ILSLEY(51.539746,-1.320564);
		
		private double mLatitude;
		private double mLongitude;
		
		Location( double lat, double longitude)
		{
			mLatitude = lat;
			mLongitude = longitude;
		}
		
		public double latitude()
		{
			return mLatitude;
		}
		
		public double longitude()
		{
			return mLongitude;
		}
	}
	
	public static Team[] div1 = { 
		new Team("Thatcham Nomads", Calendar.TUESDAY, Location.THATCHAM, new TeamContact("Alan Duke", "", "","01793531234", "alan-duke2@talktalk.net")  ),
		new Team(),
		new Team("Tidmarsh Terriers", Calendar.WEDNESDAY, Location.TIDMARSH, new TeamContact("Andy Stephens","07989637833","","01189452054","andrewstephens_3@hotmail.com") ),
		new Team("Woolton Hill Eagles", Calendar.THURSDAY, Location.WOOLTON_HILL, new TeamContact("Antony Baker", "07920557778","","0163540784","") ),
		new Team("Thatcham A", Calendar.FRIDAY, Location.THATCHAM, new TeamContact("Dave Wise","","01635863552","01189832582","") ),
		new Team(),
		new Team("Ashford Hill Ramblers", Calendar.THURSDAY, Location.ASHFORD_HILL, new TeamContact("John Goodyer","", "01256798395","01189820355","ahjonboy@gmail.com") ),
		new Team("Ashford Hill Extras", Calendar.FRIDAY, Location.ASHFORD_HILL, new TeamContact("Denise Weller", "", "01189323755","01189832769", "hobgoblin2000@gmail.com") ),
		new Team("Woolton Hill Challengers", Calendar.THURSDAY, Location.WOOLTON_HILL, new TeamContact("Robin Burns", "07881552443","","01189815314","") ),
		new Team("Thatcham Colts", Calendar.MONDAY, Location.THATCHAM, new TeamContact("Andy Jeffrey","07840342259","","","") ),
	};

	public static Team[] div2 = { 
		new Team("Joggers", Calendar.TUESDAY, Location.JOG, new TeamContact("Mark Wheeler", "07961904634", "01189038623", "01488680956", "mark.wheeler0@gmail.com") ),
		new Team(), 
		new Team("Ashford Hill Rooters", Calendar.FRIDAY, Location.ASHFORD_HILL, new TeamContact("Clive Beal","07841238156", "", "01635876356","susie@bytesandbobs.com") ),
		new Team("Thatcham Old Fogies", Calendar.THURSDAY, Location.THATCHAM, new TeamContact("Mike Buley","","","01256471931","") ),
		new Team("Thatcham C", Calendar.WEDNESDAY, Location.THATCHAM, new TeamContact("Jeff Caddy","","","01635863578","jeffreycaddy@btinternet.com")),
		new Team("Thatcham Thunder", Calendar.TUESDAY, Location.THATCHAM, new TeamContact("Ian Wu","07778869032","","0163533145", "ian.wu@wu-home.co.uk") ),
		new Team("AWE Fission", Calendar.MONDAY, Location.AWE, new TeamContact("Peter Smith", "07778564158", "","01183276463", "p.smith247@gmail.com") ),
		new Team("Woolton Hill Badgers", Calendar.WEDNESDAY, Location.WOOLTON_HILL, new TeamContact("Sue Purton", "07500250926","","01635253367;","suepurton@hotmail.com") ),
		new Team("Thatcham Spartans", Calendar.THURSDAY, Location.THATCHAM, new TeamContact("Eric Panting", "", "", "01635872713","epanting2004@yahoo.co.uk") ), 
		new Team("Thatcham Spinners", Calendar.FRIDAY, Location.THATCHAM, new TeamContact("Andy Cornmell","07717782670","","01635201391","andycornmell@hotmail.co.uk") ),
	};

	public static Team[] div3 = { 
		new Team("Thatcham Hawks", Calendar.MONDAY, Location.THATCHAM, new TeamContact("Geoff Eldred", "07948188330", "","01635770507","geoffeldred@sky.com") ),
		new Team("Ashford Hill Choppers", Calendar.THURSDAY, Location.ASHFORD_HILL, new TeamContact("Cliff Robertson", "","","0163549899","cliffordrobertson@btinternet.com") ),
		new Team("Woolton Hill Racketeers", Calendar.TUESDAY, Location.WOOLTON_HILL, new TeamContact("Jonathan Hopson", "07500250926","","01635254168","jjhopson@btinternet.com") ),
		new Team("Inkpen Infidels", Calendar.MONDAY, Location.INKPEN, new TeamContact("John Tanner", "","","01488668445","john@tanners.plus.com") ),
		new Team("Thatcham Scorpions", Calendar.MONDAY, Location.THATCHAM, new TeamContact("Graeme Panting", "","","01635863331","") ),
		new Team("Thatcham Lions", Calendar.MONDAY, Location.THATCHAM, new TeamContact("Phil Gibbs", "07771575000","","","philgibbs50@hotmail.com") ),
		new Team("West Ilsley B", Calendar.MONDAY, Location.WEST_ILSLEY, new TeamContact("Deryck Crossley", "07923611034","","01235767717","john@jochta.com") ),
		new Team("Woolton Hill Woodpeckers", Calendar.TUESDAY, Location.WOOLTON_HILL, new TeamContact("Erik Pattenden", "07717473659","","01635552715","erik.pattenden@gmail.com") ),
		new Team("Inkpen Insufferables", Calendar.MONDAY, Location.INKPEN, new TeamContact("Nick Saint", "", "","01488668313", "") ),
		new Team("Thatcham Kestrels", Calendar.WEDNESDAY, Location.THATCHAM, new TeamContact("Pat Shaw","07747774774","","01635862508","patjshaw@btinternet.com") ),
	};

}
